package com.zhz.web;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * @author zhouhengzhe
 * @description:
 * @date 2021/11/30 下午8:14
 * @since v1
 */
@FunctionalInterface
public interface ServletContextInitializer {
	/**
	 * Configure the given {@link ServletContext} with any servlets, filters, listeners
	 * context-params and attributes necessary for initialization.
	 * @param servletContext the {@code ServletContext} to initialize
	 * @throws ServletException if any call against the given {@code ServletContext}
	 * throws a {@code ServletException}
	 */
	void onStartup(ServletContext servletContext) throws ServletException;

}
